<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="css/face.css">
    <title>face</title>
</head>

<body>
    <textarea style="width:100%;height:200px;"></textarea>
    <div>这是一个表情[嘻嘻]，这是另外一个表情[馋嘴]<p><span>123</span></p></div>
    <br>
    <button class="btn">按钮</button>
    <button class="show">显示</button>
    <script src="js/rem.js"></script>
    <script src="js/face.js"></script>
    <script>
        Face.init({ path: './img', shadeClose: true }).add('.btn', 'textarea');
        var div = document.querySelector("div");
        var show = document.querySelector(".show");
        Face.scan('*');
    </script>
</body>

</html>